From 9f2a198a627e222be5c99ca2e5d47facfe9aacf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Havl=C3=AD=C4=8Dek?= <80639037+havel06@users.noreply.github.com> Date: Sun, 2 Jan 2022 17:37:39 +0100 Subject: Fixed diagonal redstone powering (#5363) * Fixed diagonal redstone powering * Transparent blocks don't transmit downwards --- CONTRIBUTORS | 1 + src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 1bf8aabfb..20a767efa 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -27,6 +27,7 @@ feyokorenhof Gareth Nelson GefaketHD HaoTNN +havel06 (Michal Havlíček) Howaner ion232 (Arran Ireland) jan64 diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h index 70a546b0e..cfdecb246 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h +++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h @@ -146,7 +146,7 @@ namespace RedstoneWireHandler (NeighbourChunk->GetBlock(Adjacent + OffsetYP) == E_BLOCK_REDSTONE_WIRE) // Only terrace YP with another wire ) { - SetDirectionState(Offset, Block, TemporaryDirection::Up); + SetDirectionState(Offset, Block, cBlockInfo::IsTransparent(LateralBlock) ? TemporaryDirection::Side : TemporaryDirection::Up); if (NeighbourChunk != &Chunk) { -- cgit v1.2.3